package com.zmn.oms.services.interfaces.work;

import com.zmn.oms.common.dio.normal.work.OrderWorkRelationDIO;
import com.zmn.oms.model.entity.work.OrderWorkRelation;

/**
 * @author fubiao
 * @since 022年03月22日 11:12
 */
public interface OrderWorkRelationService {


    /**
     * 根据 订单id && 工单id && 标识 查询
     *
     * @param orderId
     * @param workId
     * @return
     */
    OrderWorkRelation findOrderWorkRelationByOrderIdAndWorkIdSrcMaster(Long orderId, Long workId, Integer type);

    /**
     * 根据 订单id && 工单id && 标识 查询
     *
     * @param orderId
     * @param workId
     * @return
     */
    OrderWorkRelation findOrderWorkRelationByOrderIdAndWorkId(Long orderId, Long workId, Integer type);

    /**
     * 新增一条信息
     *
     * @param workRelation
     * @return
     */
    Integer insertOrderWorkRelation(OrderWorkRelation workRelation);

    /**
     * 删除一条信息
     *
     * @param orderId
     * @param workId
     * @param type
     * @return
     */
    Integer deleteOrderWorkRelationByWorkIdAndType(Long orderId, Long workId, Integer type);
}
